import http from '@/request/request.js'
//获取订单列表
export const getOrderList = (data) => {
  return http.post('orders/lists', data)
}
//获取订单详情
export const getOrderItem = (data) => {
  return http.post('orders/orderDetails', data)
}
//更多好物/灵感周边 
export const getInspirationalitemsList = (data) => {
  return http.post('Inspirationalitems/lists', data)
}
//确定下单 
export const orderConfirm = (data) => {
  return http.post('orders/confirm', data)
}
//未付款继续支付
export const orderCotinuePay = (data) => {
  return http.post('orders/continue_payment', data)
}
//取消订单
export const orderCancel = (data) => {
  return http.post('orders/cancel_order', data)
}

//服务商确认收货 
export const receiptConfirm = (data) => {
  return http.post('users/server_confirm_order', data)
}
//用户确认收货 
export const userConfirm = (data) => {
  return http.post('orders/userConfirmReceipt', data)
}

//获取售后订单 
export const getOrderAfter = (data) => {
  return http.post('users/after_sales_application', data)
}
//售后提交
export const saveOrderAfter = (data) => {
  return http.post('users/determine_after_sales_service', data)
}
//图片上传 
export const upload = (data) => {
  return http.post('users/uploads', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

